<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blog - Felipe N. Oliva</title>
<link href="blog.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<?php 
		include "login.php";
	?>
	
	<div id="pagina">
    	
        <div id="topo" align="center">
        	
        </div>
        
        <div id="menu">
        	<?php
				if (empty($_SESSION)){ 
					include "menu.php";
				} else {
					include "./admin/menu_admin.php";
				}
			?>
        </div>
        
        <div id="conteudo">
            <?php 
				include "conteudo.php";
			?>
        </div>
        
        <div id="barradireita">
        
        	<div id="login">
				<div id="conteudo_barradireita">
					<?php
						if (empty($_SESSION)){ 
							 echo "Visitante";
							 echo "</br>";
							 echo "<html><a href="."./admin/logar.php".">Fazer login</a>";
						} else {
							echo $_SESSION["usuario"]["nome"]." - ".$_SESSION["usuario"]["login"];
							echo "<br />";
							echo "<html><a href="."./admin/senha.php".">Mudar Senha</a><br/><a href="."./admin/sair.php".">Logout</a></html>";
						}
					?>
				</div>
            </div>
            
        </div>
        
    </div>
	
</body>
</html>
